package com.xieyong.mywebsite.service;

import com.github.pagehelper.PageInfo;
import com.xieyong.mywebsite.model.entity.Notice;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public interface BaseNoticeService {

    Notice getById(Integer id);

    List<Notice> getAll();

    PageInfo<Notice> getPage(Integer pageNum, Integer pageSize, Notice notice, LocalDateTime startTime, LocalDateTime endTime);

    void add(Notice notice);

    void update(Notice notice);

    void delete(Integer id);

    void deleteBatch(List<Integer> ids);
}
